home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Broadcaster / Protocols / DiskInsertionReceiver.h < prev    next >
Encoding:
Text File  |  1997-06-28  |  470 b   |  24 lines  |  [TEXT/CWIE]

  1. // DiskInsertionReceiver.h
  2.  
  3. #ifndef DiskInsertionReceiver_h
  4. #define DiskInsertionReceiver_h
  5.  
  6. #ifndef DiskInsertion_h
  7. #include "DiskInsertion.h"
  8. #endif
  9. #ifndef Receiver_h
  10. #include "Receiver.h"
  11. #endif
  12.  
  13. class DiskInsertionReceiver: public Receiver< DiskInsertion >
  14.   {
  15.     public:
  16.         DiskInsertionReceiver( bool startEnabled = true );
  17.         
  18.         static Broadcaster<DiskInsertion>& Sender();
  19.         
  20.         static void Send( const DiskInsertionEvent&, OSErr initializationError );
  21.   };
  22.  
  23. #endif
  24.